package com.wfy.modules.tencent.web;

import com.wfy.common.entity.Result;
import com.wfy.common.entity.ResultGenerate;
import com.wfy.common.web.BaseController;
import com.wfy.modules.tencent.entity.FacecosmeticEntity;
import com.wfy.modules.tencent.service.ITencentFaceService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: wangxindong
 * @date: 2018/2/23-12:08
 */
@RestController
@RequestMapping(value = "/api/v1/face")
public class TencentFaceController extends BaseController {

    // ================================================================
    // Constants
    // ================================================================

    // ================================================================
    // Fields
    // ================================================================

    @Resource(name = "tencentFaceServiceImpl")
    private ITencentFaceService tencentFaceService;


    // ================================================================
    // Constructors
    // ================================================================

    // ================================================================
    // Methods from/for super Interfaces or SuperClass
    // ================================================================

    // ================================================================
    // Public or Protected Methods
    // ================================================================

    @RequestMapping(value = "facecosmetic")
    public Result facecosmetic(FacecosmeticEntity entity) {
        FacecosmeticEntity en = tencentFaceService.getFacecosmetic(entity);
        return ResultGenerate.getSuccessResult(en);
    }


    // ================================================================
    // Getter & Setter
    // ================================================================

    // ================================================================
    // Private Methods
    // ================================================================


    // ================================================================
    // Inner or Anonymous Class
    // ================================================================

    // ================================================================
    // Test Methods
    // ================================================================

}
